﻿using MyUtils;

namespace XTrace.Viewer
{

	public partial class ColumnSetting : ObservableObject
	{

		public ColumnSetting(string name)
		{
			_name = name;
		}

		readonly string _name;
		public string Name
		{
			 get { return _name; }
		}

		string _condition;
		public string Condition
		{
			 get { return _condition; }
			 set
			{
				if (_condition != value)
				{
					_condition = value;
					OnPropertyChanged("Condition");
				}
			}
		}

		string _filterSameValues;
		public string FilterSameValues
		{
			 get { return _filterSameValues; }
			internal set
			{
				if (_filterSameValues != value)
				{
					_filterSameValues = value;
					OnPropertyChanged("FilterSameValues");
					OnPropertyChanged("IsVisible");
				}
			}
		}

		bool? _visibilityManual;
		public bool? VisibilityManual
		{
			 get { return _visibilityManual; }
			 set
			{
				if (_visibilityManual != value)
				{
					_visibilityManual = value;
					OnPropertyChanged("VisibilityManual");
					OnPropertyChanged("IsVisible");
				}
			}
		}

	}


	public partial class TestClass2 : ObservableObject
	{

		public TestClass2()
		{
		}

		string _c;
		public string C
		{
			 get { return _c; }
			 set
			{
				if (_c != value)
				{
					_c = value;
					OnPropertyChanged("C");
				}
			}
		}

		string _d;
		public string D
		{
			 get { return _d; }
			 set
			{
				if (_d != value)
				{
					_d = value;
					OnPropertyChanged("D");
				}
			}
		}

	}


}